﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="detailTrans.aspx.cs" Inherits="admin_detailTrans" MasterPageFile="~/admin/MasterPage2.master" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

    <table  cellpadding="0" cellspacing="0" class="letraAzul" width="1100px" 
         align="center">
    <tr>
    <td  bgcolor="#FA7E02" style="text-align: center">
       
        <asp:Image ID="Image2" runat="server" ImageUrl="~/img/Paypal.png" />
       
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
       
        </td>
    </tr>
    <tr>
    <td bgcolor="White">
    <table class="style1" align="center">
            
            
            <tr>
                
                <td>
                    <asp:Panel ID="Pcheck" runat="server" CssClass="popup" Width="900px">
                        <table align="center" width="800">
                            <tr align="center">
                                <td class="letrabold" colspan="4" align="center">
                                    <asp:Panel ID="Pdetail" runat="server" BorderColor="Silver" 
                                        BorderStyle="Outset" Width="800px">
                                    <table class="letraNegra13" width="800">
                                     <tr>
                                        <td bgcolor="#FA7E02" class="caption" colspan="4">
                                            Transaction Details</td>
                            </tr>
                            <tr>
                                <td class="letraNegra13">
                                    Reference:</td>
                                <td>
                                    <asp:TextBox ID="tb_reference" runat="server" CssClass="txtForm" Width="120px" 
                                        MaxLength="45"></asp:TextBox>
                                </td>
                                <td class="letraNegra13">
                                    Issued&nbsp; Date:</td>
                                <td>
                                    <asp:TextBox ID="tb_date" runat="server" CssClass="txtForm" Width="120px"></asp:TextBox>
                                    <asp:calendarextender ID="tb_date_CalendarExtender" runat="server" 
                                        Format="MM/dd/yyyy" TargetControlID="tb_date">
                                    </asp:calendarextender>
                                </td>
                            </tr>
                            <tr>
                                <td class="letraNegra13">
                                    Transaction Amount:</td>
                                <td>
                                    <asp:TextBox ID="tb_amount" runat="server" CssClass="txtForm" Width="120px"></asp:TextBox>
                                     <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="tb_amount" 
                    ErrorMessage="Error, only numbers are allowed" 
                    SetFocusOnError="True" 
                    ValidationExpression="((\d)*(.)(\d)*)"></asp:RegularExpressionValidator>
                                </td>
                                <td class="letraNegra13">
                                    Date Process</td>
                                <td>
                                    <asp:TextBox ID="tb_date2" runat="server" CssClass="txtForm" Width="120px"></asp:TextBox>
                                    <asp:calendarextender ID="tb_date2_CalendarExtender" runat="server" 
                                        Format="MM/dd/yyyy" TargetControlID="tb_date2" />
                                </td>
                            </tr>
                            <tr>
                                <td class="letraNegra13">
                                    Client</td>
                                <td>
                                    <asp:DropDownList ID="cb_client" runat="server" CssClass="txtForm" 
                                        Width="129px">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    Receipt No:</td>
                                <td>
                                    <asp:TextBox ID="tb_receipt" runat="server" CssClass="txtForm" Width="120px" 
                                        MaxLength="45"></asp:TextBox>
                                    
                                    
                                </td>
                            </tr>
                                        <tr>
                                            <td class="letraNegra13">
                                                <asp:TextBox ID="tb_id" runat="server" CssClass="txtForm" Visible="False" 
                                                    Width="50px"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="tb_depid" runat="server" CssClass="txtForm" Visible="False" 
                                                    Width="50px"></asp:TextBox>
                                            </td>
                                            <td>
                                                Total of orders:</td>
                                            <td>
                                                <asp:TextBox ID="tb_sum" runat="server" CssClass="txtForm" Enabled="False" 
                                                    Width="120px"></asp:TextBox>
                                            </td>
                                        </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    <asp:ImageButton ID="imaButton" runat="server" onclick="imaButton_Click" 
                                        ImageUrl="~/blank.gif" />
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr></table>
                                    </asp:Panel>
                                </td>
                            </tr>
                           
                          
                            <tr>
                                <td colspan="4" align="center">
                                    <asp:Label ID="lb_mensaje" runat="server" CssClass="letraAzul" Font-Size="16pt" 
                                        Text="Label" Visible="False"></asp:Label>
                                    <asp:Label ID="lb_error" runat="server" CssClass="letraRojaValidacion" 
                                        Font-Size="16pt" Text="Label" Visible="False"></asp:Label>
                                    <asp:Label ID="Label5" runat="server" CssClass="letraAzul" Font-Size="16pt" 
                                        Text="Label" Visible="False"></asp:Label>
                                    <asp:Label ID="Label6" runat="server" CssClass="letraRojaValidacion" 
                                        Font-Size="16pt" Text="Label" Visible="False"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4" align="center">
                                    <asp:Panel ID="Panel1" runat="server" Visible="False">
                                    <table width="800">
                            <tr>
                                <td align="left" class="style4">
                                    &nbsp;Order #:</td>
                                <td class="style5" style="text-align: left" valign="top">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td align="left">
                                    &nbsp;<asp:TextBox ID="tb_orders" runat="server" Height="132px" 
                                        TextMode="MultiLine" Width="631px"></asp:TextBox>
                                    <br />
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                        ControlToValidate="tb_orders" 
                                        ErrorMessage="Error, only order # separated with &quot;,&quot; without space" 
                                        SetFocusOnError="True" 
                                        ValidationExpression="((\d)*([a-z]|[A-Z]|[-])*(\d)*(,)*)+"></asp:RegularExpressionValidator>
                                </td>
                                <td class="style5" style="text-align: left" valign="top">
                                    <asp:LinkButton ID="lnk_search" runat="server" CssClass="button2_ok" 
                                        ForeColor="White" onclick="lnk_search_Click"><span>Search</span></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                                    </asp:Panel>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="4">
                                    <asp:Panel ID="Panel2" runat="server" Visible="False">
                                        <table align="center">
                                            <tr valign="top">
                                                <td align="center" style="text-align: left">
                                                    <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" 
                                                        oncheckedchanged="CheckBox1_CheckedChanged" style="text-align: left" 
                                                        Text="All" />
                                                </td>
                                            </tr>
                                            <tr valign="top">
                                                <td align="center">
                                                    &nbsp;&nbsp;&nbsp;<asp:GridView ID="gv_multiple" runat="server" AutoGenerateColumns="False" 
                                                        Caption="&lt;table border='0' width='100%' cellpadding='0' cellspacing='0' class='caption' bgcolor='#FA7E02'&gt;&lt;tr&gt;&lt;td&gt;Orders paid in Paypal&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;" 
                                                        GridLines="Horizontal" onrowdatabound="gv_multiple_RowDataBound" ShowFooter="True" 
                                                        Width="800px" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" 
                                                        BorderWidth="1px" CellPadding="4" ForeColor="Black" 
                                                        CssClass="letraNegra13">
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="CHBX1" runat="server" TextAlign="Left" />
                                                                    <asp:HyperLink ID="HyperLink1" runat="server" 
                                                                        NavigateUrl='<%#"~/admin/ODetils.aspx?id=" + Eval("orderid") %>' Width="80px"><%# Eval("Order #")%></asp:HyperLink>
                                                                    <asp:Label ID="lbClient" runat="server" Text='<%# Eval("Client")%>' 
                                                                        TextAlign="Left" Width="80px" />
                                                                    <asp:Label ID="lb_order" runat="server" Text='<%# Eval("orderid")%>' 
                                                                        TextAlign="Left" Visible="false" Width="10px" />
                                                                    <asp:Label ID="lbcompany" runat="server" Text='<%# Eval("Company")%>' 
                                                                        TextAlign="Left" Width="80px" />
                                                                    <asp:Label ID="lbacc" runat="server" Text='<%# Eval("Account")%>' 
                                                                        Width="80px" />
                                                                    <asp:Label ID="ltype" runat="server" Text='<%# Eval("Type")%>' Width="50px" />
                                                                    <asp:Label ID="lbaddress" runat="server" Text='<%# Eval("Street")%>' 
                                                                        Width="50px" />
                                                                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("Street Address")%>' 
                                                                        Width="100px" />
                                                                    <asp:TextBox ID="tbx_fee" runat="server" Text='<%# Eval("fee")%>' 
                                                                        Width="40px" />
                                                                    <asp:TextBox ID="isPaid" runat="server" Text='<%# Eval("Paid")%>' 
                                                                        Width="10px" />
                                                                    <asp:Image ID="image" runat="server" ImageUrl="~/img/checkdone.png" />
                                                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("PaidDate")%>' 
                                                                        Width="100px" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <EditRowStyle BorderStyle="None" BorderWidth="0px" Font-Underline="True" />
                                                        <AlternatingRowStyle BorderStyle="None" />
                                                        
                                                        <HeaderStyle Font-Bold="True" ForeColor="Black" />
                                                        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                                                        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                                                    
                                                    </asp:GridView>
                                                </td>
                                            </tr>
                                            <tr valign="top">
                                                <td align="center">
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    &nbsp;</td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </td>
                            </tr>
                              <tr>
                                <td colspan="4" align="center">
                                <asp:LinkButton ID="lnk_delete" runat="server" CssClass="button2_ok" 
                                        ForeColor="White" onclick="lnk_delete_Click" ><span>Delete </span></asp:LinkButton>
                                    <asp:LinkButton ID="bt_cancel" runat="server" CssClass="button2_ok" 
                                        ForeColor="White" onclick="bt_cancel_Click"><span>Close</span></asp:LinkButton>
                                        <asp:LinkButton ID="lnk_cancel_unpaid" runat="server" CssClass="button2_ok" 
                                        ForeColor="White" onclick="lnk_cancel_unpaid_Click"><span>Cancel</span></asp:LinkButton>
                                   <asp:LinkButton ID="Edit" runat="server" CssClass="button2_ok" 
                                        ForeColor="White" onclick="Edit_Click"><span>Edit</span></asp:LinkButton>
                                    
                                    
                                    <asp:LinkButton ID="lnk_Assign" runat="server" CssClass="button2_ok" 
                                        Enabled="False" ForeColor="White" onclick="lnk_Assign_Click"><span>Save</span></asp:LinkButton>

                                    <asp:LinkButton ID="lnk_save" runat="server" CssClass="button2_ok" 
                                        ForeColor="White" onclick="lnk_save_Click" ><span>Save</span></asp:LinkButton>
                                
                                   <asp:LinkButton ID="lnk_update" runat="server" CssClass="button2_ok" 
                                        ForeColor="White" onclick="lnk_update_Click"  ><span>Save</span></asp:LinkButton>
                                    <asp:LinkButton ID="lnk_addmore_unpadid" runat="server" CssClass="button2_ok" 
                                        Enabled="False" ForeColor="White" onclick="lnk_addmore_unpadid_Click"><span>Add</span></asp:LinkButton>
                                    <asp:LinkButton ID="bt_addor" runat="server" CssClass="button2_ok" 
                                        ForeColor="White" onclick="Button8_Click"><span>Add </span></asp:LinkButton>
                                    
                                
                                    
                                
                                    
                                
                                    <asp:ImageButton ID="bt_hide" runat="server" ImageUrl="~/blank.gif" />
                                
                                    
                                
                                    
                                
                                    
                                
                                </td>
                            </tr>
                             <tr>
                                <td align="center" colspan="4">
                              
                                <asp:Panel ID="pnlClick" runat="server" CssClass="caption">
                                      
                                  
                                    <asp:Image ID="imgArrows" runat="server" />
                                    <asp:Label ID="lblMessage" runat="server" Text="Label" />
                                    &nbsp;Orders in this Transaction
                                  
                                   
                                    <div style="clear:both"></div>
                                    
                                    </asp:Panel>
                                 <asp:panel runat="server" id="Plistorder" >
                               
                                 
                                    <table width="800"  >
                                    <tr><td>
                                        <asp:GridView ID="gv_order" runat="server" HorizontalAlign="Center" 
                                            onrowdatabound="gv_order_RowDataBound" Width="800px" 
                                            
                                             onrowcommand="gvd_RowCommand" 
                                             CssClass="letraNegra13" BackColor="White" BorderColor="#CCCCCC" 
                                            BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" 
                                            GridLines="Horizontal" AutoGenerateColumns="False" onrowediting="gv_order_RowEditing" 
                                            HeaderStyle-CssClass="letraAzul14"
                                           >
                                            <Columns>
                                            
                                              <asp:TemplateField><ItemTemplate>
                                             <asp:ImageButton ID="bt_editdetail"   OnClick="editdetail" Visible="true" Text="Edit" runat="server" ImageUrl="~/img/icon_content_small.gif" />
                                             <asp:ImageButton ID="bt_savedetail"   OnClick="savedetail" Visible="false" Text="Save" runat="server" ImageUrl="~/img/save_as.png"/>
                                             </ItemTemplate> </asp:TemplateField>
                                           
                                                <asp:TemplateField HeaderText= "Order #" HeaderStyle-HorizontalAlign="Left"><ItemTemplate  >
                                                                                                                             
                                                                   
                                                 <asp:Label ID="lbClient" runat="server" Text='<%# Eval("Order #")%>'  TextAlign="Left" Width="80px" />
                                                 </ItemTemplate></asp:TemplateField>
                                                 
                                                 <asp:TemplateField HeaderText= "" HeaderStyle-HorizontalAlign="Left"><ItemTemplate  >
                                                                    <asp:Label ID="lb_order" runat="server" Text='<%# Eval("orderid")%>' 
                                                                        TextAlign="Left" Visible="false" Width="10px" />
                                                  </ItemTemplate></asp:TemplateField>
                                                  <asp:TemplateField HeaderText= "Company" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:Label ID="lbcompany" runat="server" Text='<%# Eval("Company")%>' 
                                                                        TextAlign="Left" Width="70px" />
                                                   </ItemTemplate></asp:TemplateField>
                                                   <asp:TemplateField HeaderText= "Account" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:Label ID="lbacc" runat="server" Text='<%# Eval("Account")%>' 
                                                                        Width="70px" />
                                                    </ItemTemplate></asp:TemplateField>
                                                    <asp:TemplateField HeaderText= "Type" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:Label ID="ltype" runat="server" Text='<%# Eval("Type")%>' Width="40px" />
                                                     </ItemTemplate></asp:TemplateField>
                                                      <asp:TemplateField HeaderText= "St #" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:Label ID="lbaddress" runat="server" Text='<%# Eval("Street")%>' 
                                                                        Width="50px" />
                                                    </ItemTemplate></asp:TemplateField>
                                                      <asp:TemplateField HeaderText= "Address" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("Street Address")%>' 
                                                                        Width="90px" />
                                                    </ItemTemplate></asp:TemplateField>
                                                      <asp:TemplateField HeaderText= "Fee" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                    <asp:TextBox ID="tbx_fee" runat="server" Text='<%# Eval("fee")%>' 
                                                                        Width="30px" Enabled="false" />
                                                    </ItemTemplate></asp:TemplateField>
                                                    <asp:TemplateField HeaderText= "Paid" HeaderStyle-HorizontalAlign="Left" Visible="false"><ItemTemplate>
                                                                    <asp:TextBox ID="isPaid" runat="server" Text='<%# Eval("Paid")%>' 
                                                                        Width="10px" Visible="false" />
                                                    </ItemTemplate></asp:TemplateField>
                                                    <asp:TemplateField HeaderText= "Paid" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                      <asp:CheckBox ID="CHBX3" runat="server" TextAlign="Left"  Enabled="false" Visible="false"  />
                                                                    <asp:Image ID="image" runat="server" ImageUrl="~/img/checkdone.png" />
                                                   </ItemTemplate></asp:TemplateField>
                                                      <asp:TemplateField HeaderText= "Paid Date" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                     <asp:Label ID="Label1" runat="server" Text='<%# Eval("PaidDate")%>' 
                                                                        Width="100px" />
                                                    </ItemTemplate></asp:TemplateField>
                                                      <asp:TemplateField HeaderText= "Status" HeaderStyle-HorizontalAlign="Left"><ItemTemplate>
                                                                     <asp:Label ID="lstatus" runat="server" Text='<%# Eval("Status")%>' 
                                                                        Width="100px" />
                                                                   
                                                     </ItemTemplate></asp:TemplateField>
                                                
                                            </Columns>
                                            
                                            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                                            <HeaderStyle HorizontalAlign="Left" BackColor="#ffffff" Font-Bold="True" 
                                                ForeColor="Blue" />
                                            
                                            <SelectedRowStyle BackColor="#00ff00" Font-Bold="True" ForeColor="White" />
                                          
                                        </asp:GridView>
                                        </td>
                                        </tr>
                                        </table>
                                                      
                                  </asp:panel>
                           <asp:CollapsiblePanelExtender
                                        ID="CollapsiblePanelExtender1"
                                        runat="server"
                                        CollapseControlID="pnlClick"
                                        Collapsed="true"
                                        ExpandControlID="pnlClick"
                                        TextLabelID="lblMessage"
                                        CollapsedText=" "
                                        ExpandedText=" "
                                        ImageControlID="imgArrows"
                                        CollapsedImage="~/img/pluspanel.png"
                                        ExpandedImage="~/img/minuspanel.png"
                                        ExpandDirection="Vertical"
                                        TargetControlID="Plistorder"
                                        ScrollContents="false">
                                        </asp:CollapsiblePanelExtender>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                          
                        </table>
                    </asp:Panel>
                </td>
            </tr>
                  <tr>
                
                <td>
                    <asp:Panel ID="PMsg" runat="server" CssClass="popup" Width="300px" 
                        Visible="true">
                       <table width="300">
                                               
                                                <tr>
                                                    <td style="text-align: center">
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: center">
                                                        <asp:Label ID="lb_msg" runat="server" CssClass="letraAzul"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center">
                                                        <table align="center">
                                                            <tr>
                                                                <td>
                                                                    <asp:LinkButton ID="lnk_msg_ok" runat="server" CssClass="button2_ok" 
                                                                        ForeColor="White"  ><span>Cancel</span></asp:LinkButton>
                                                                </td><td>
                                                                    <asp:LinkButton ID="lnk_msg_ok0" runat="server" CssClass="button2_ok" 
                                                                        ForeColor="White" onclick="lnk_msg_ok0_Click" ><span>Close</span></asp:LinkButton>
                                                                </td>
                                                                
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    
                                                </tr>
                                            </table>
                    </asp:Panel>
                    <asp:modalpopupextender ID="PMsg_ModalPopupExtender" runat="server" 
                        DynamicServicePath="" Enabled="True" TargetControlID="bt_hide" 
                        PopupControlID="PMsg" BackgroundCssClass="FondoAplicacion">
                    </asp:modalpopupextender>
                </td>
            </tr>
        </table>
           </td>
    </tr>
    <tr>
    <td bgcolor="White">&nbsp;</td>
    </tr>
    </table>
</asp:Content>


